<%@ include file="/WEB-INF/views/admin/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<div id="section">
	<div id ="mainContent">
			
			
			<div id="labelPage">ข้อมูล  โพยตีออก</div>
			
			<div id="ctrlWrap">
				<div id="ctrlL">
					
						<form:form  action="billSearch" method="post" id="search">
							งวด วันที่ออก : <input type="text" name="name" id="name" /> 
							<button type="submit">ค้นหา</button>				
						</form:form>
					
				</div>	
				<div id="ctrlR">
					<!-- <a href="billAddForm"><img  src="${context}/resources/img/add.jpg"/></a> -->
				</div>
			</div>
			
			<table class="tableList">
				<tr class="tableHeader">
					<td>ชื่อ</td>
					<td>ข้อมูล ตัวเลข</td>
					<td>ลายละเอียด</td>
					<td>Action</td>
				</tr>
				<c:forEach items="${bills}" var="bill" varStatus="index">
				<tr <c:if test="${index.count % 2 == 0}"> class="rowtd"</c:if>>
					<td  onclick="showBill(${bill.billId})" >${bill.name}</td>
					<td><textarea rows="10" cols="15" name="number" readonly >${bill.number}</textarea></td>
					<td><textarea rows="10" cols="25" name="detail"readonly >${bill.detail}</textarea></td>
				    <td>
				    	<a href="detailBill?id=${bill.billId}"><img  src="${context}/resources/img/find.jpg"/></a> | 
				    	<a href="billEditForm?id=${bill.billId}"><img  src="${context}/resources/img/edit.jpg"/></a> 
				    </td>
				</tr>    
				</c:forEach>
				
			</table>
		
	</div>	
</div>

<%@ include file="/WEB-INF/views/admin/footer.jsp" %>



